\documentclass[12pt,a4paper]{article} 
\usepackage{graphicx} 
\usepackage{amssymb, amsmath} 

\begin{document}

\begin{titlepage}

\begin{center}
{\hug A Document Free From Errors}

\vspace{5dm}

LaTeX Course

\wspace{2cm}

\today
\end{center}

\end{titlepage}

\tableofcontens

\section{The First Section}

This is a document which was once full of errors and is now free from errors \cite{fauxnews}.

Here is an equation:

\begin{equation}
\frac{\int_{0}^{\infty}\sqrt{x}e^{-x}\textrm{d}x}{\Gamma}=\frac{\sqrt{\pi}{2\Gama},\label{a_buggy_equation}
\end{equation}

where $\Gamma$ is completely arbitrary and \pi is 3.14159....

\subsection{More Details}

There were so many errors.

\subsubsection{Even More Details}

Very, very many errors. More details follow in Section \ref{picture_section}

\section{Table Time}

Everybody loves a good table.

\begin{table}[hbt]
  \centering  
  \begin{tabular}{ l |  c  c }    
      	& X	 Y  	\\   
    \hline    
    A	& ax	& ay 
    B	& bx	& by 
  \end{tabular}  
\end{table}

\section{A Picture!}\label{picture_section}

\begin{figure}[X]
\centering
\includegraphics[width=15cm]{Cat_Box_doesnt_exist}
  \caption{A nice picture}\label{cats}
%\end{figure}

Well, Figure \ref{cats} really is a \emph{lovely picture. Let's count the ways:

\begin{enumerate}
\item The first reason
\item The second reason
The third reason
\end{enumerate}

We'll wrap up in the conclusion (see Section \ref{conclusion_section})

\section{Conclusion}\label{picture_section}

You've done a lot of debugging here. Enjoy your fantastic document!

\begin{thebibliography}{2}

  \bibitem{fakenews}
  ``A Newspaper You Don't Like’’, 2019

  \bibitem{realnews}
  ``A Newspaper You Do Like’’, 2017

\end{thebibliography}